|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Value to Set | Description | Constant Name | | 8 | Sizing (NW, SE) | vbSizeNWSE | | 9 | Sizing (W, E) | vbSizeWE | | 10 | Up arrow | vbUpArrow | | 11 | Hourglass | vbHourglass | | 12 | No drop | vbNoDrop | | 13 | Arrow and hourglass | vbArrowHourglass | | 14 | Arrow and question mark | vbArrowQuestion | | 15 | Size all | vbSizeAll | | 99 | Custom icon specified by the MouseIcon property | VbCustom |
|
|
|
|
|
|
The last cursor type, 99, is used in combination with the MouseIcon property. If you set this type, you must have the MouseIcon property filled in with the name of a valid cursor file or an icon (ICO) file. |
|
|
|
|
|
|
|
|
One of the many benefits of the Windows environment is the ability to move text, graphics, and other objects from one application to another. This is normally accomplished via a mechanism called the Clipboard. The Clipboard is an area of memory thats a temporary holding area for any valid Windows object. |
|
|
|
|
|
|
|
|
Normally, you move items from your application to the Clipboard by pressing the Ctrl+C key combination. You can then move to another application, or even stay in the same one, and press Ctrl+V to retrieve that information from the Clipboard. |
|
|
|
|
|
|
|
|
Visual Basic also takes advantage of this behavior. From any text box, you can highlight an area of text you have typed in and use these key combinations to copy and paste information. For example, you can highlight any part of a name in one text box, press Ctrl+C, and move to another text box and press Ctrl+V to put the text there. This functionality is built into VB and requires no programming on your part (see Figure 21.5). |
|
|
|
|
|
|
|
|
Examples Filename: ObjClip.frm |
|
|
|
|
|